
'''
  私有库推送
'''

# include Dy_custom from './DYNetworking.podspec'
$tag = ARGV[0]

puts '更新tag到 =====>' + $tag

def dy_pod_push
  puts Dir.pwd

  puts "查看当前状态"
  system "git status"
  system "git add ."
  system "git commit -m\"podspec 版本更新\""
  system "git push"

  system "git tag #{$tag}"
  system "git push --tags"

  system "pod repo push MGPodSpec \
  --sources='master','MGPodSpec' \
  --use-libraries \
  --allow-warnings \
  --verbose"
end

dy_pod_push
